package com.tianqicode.netty.getstart;

import io.netty.channel.ChannelInitializer;
import io.netty.channel.socket.SocketChannel;

/**
 * @author wangtianqi
 * date 2022/3/22 14:35
 */
public class ServerChannelInitializer extends ChannelInitializer<SocketChannel> {

    @Override
    protected void initChannel(SocketChannel ch) throws Exception {
        System.out.println("有SocketChannel初始化了");
        ch.pipeline().addLast(new DiscardServerHandler());
    }
}
